//
//  RequestOperationManager.m
//  YGShopProject
//
//  Created by 周筱雯 on 2017/3/16.
//  Copyright © 2017年 周筱雯. All rights reserved.
//

#import "RequestOperationManager.h"

@implementation RequestOperationManager


//注册
+(void)registerWithParametersDic:(NSDictionary *)parameterDic success:(void (^)(NSDictionary * result))successBlock failture:(void (^)(id result))failtureBlock{
    
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DEF_INTERFACE_REGISTER finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
    
}

//短信验证码
+(void)codeWithParametersDic:(NSDictionary *)parameterDic success:(void (^)(NSDictionary * result))successBlock failture:(void (^)(id result))failtureBlock{
    
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DEF_INTERFACE_CODE finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
    
}

//忘记密码
+(void)forgetPwdWithParametersDic:(NSDictionary *)parameterDic success:(void (^)(NSDictionary * result))successBlock failture:(void (^)(id result))failtureBlock{
    
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DEF_INTERFACE_FORGETPWD finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
}

//登录
+(void)LoginWithParametersDic:(NSDictionary *)parameterDic success:(void (^)(NSDictionary * result))successBlock failture:(void (^)(id result))failtureBlock{
    
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DEF_INTERFACE_LOGIN finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
}
//退出登录
+(void)LoginOutWithParametersDic:(NSDictionary *)parameterDic success:(void (^)(NSDictionary * result))successBlock failture:(void (^)(id result))failtureBlock{
    
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DEF_INTERFACE_LOGINOUT finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
}

//用户签到
+(void)userSignParametersDic:(NSDictionary *)parameterDic success:(void (^)(NSDictionary * result))successBlock failture:(void (^)(id result))failtureBlock{
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DEF_INTERFACE_USERSIGN finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
}


//真实信息绑定
+(void)bandRealInfoParametersDic:(NSDictionary *)parameterDic success:(void (^)(NSDictionary * result))successBlock failture:(void (^)(id result))failtureBlock{
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DEF_INTERFACE_BANDREALINFO finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
}
//解除绑定
+(void)cancelBandRealInfoParametersDic:(NSDictionary *)parameterDic success:(void (^)(NSDictionary * result))successBlock failture:(void (^)(id result))failtureBlock{
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DEF_INTERFACE_CANCELBANDRELINFO finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
}
//积分明细
+(void)showCoreDetailParametersDic:(NSDictionary *)parameterDic success:(void (^)(NSDictionary * result))successBlock failture:(void (^)(id result))failtureBlock{
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DEF_INTERFACE_SHOWCOREDETAIL finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
}

//个人中心
+(void)userinfoDetailParametersDic:(NSDictionary *)parameterDic success:(void (^)(NSDictionary * result))successBlock failture:(void (^)(id result))failtureBlock{
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DEF_INTERFACE_USERINFO finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
}

//购彩记录
+(void)userbuyLotteryParametersDic:(NSDictionary *)parameterDic success:(void (^)(NSDictionary * result))successBlock failture:(void (^)(id result))failtureBlock{
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DEF_INTERFACE_FINDUSERBUYINFO finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
}
//上传头像
+(void)upLoadImageParametersDic:(NSDictionary *)parameterDic success:(void (^)(NSDictionary * result))successBlock failture:(void (^)(id result))failtureBlock{
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DEF_INTERFACE_UPLOADFILE finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
}
//修改签名
+(void)updateUserInfoSignNamePwdParametersDic:(NSDictionary *)parameterDic success:(void (^)(NSDictionary * result))successBlock failture:(void (^)(id result))failtureBlock{
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DEF_INTERFACE_UPDATEUSERSIGNANDPWD finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
}
//获取新一期开奖接口
+(void)findLotteryTypeParametersDic:(NSDictionary *)parameterDic success:(void (^)(NSDictionary * result))successBlock failture:(void (^)(id result))failtureBlock{
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DEF_INTERFACE_LOTTERYINFOTWO finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
}
//搜索大神
+(void)searchGreatGodSignNamePwdParametersDic:(NSDictionary *)parameterDic success:(void (^)(NSDictionary * result))successBlock failture:(void (^)(id result))failtureBlock{
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DEF_INTERFACE_FINDWINUSERS finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
}

//彩票收藏
+(void)collectionInfoParametersDic:(NSDictionary *)parameterDic
                           success:(void (^)(NSDictionary * result))successBlock
                          failture:(void (^)(id result))failtureBlock{
    
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DEF_INTERFACE_COLLECTIONINFO finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
}

//发布论坛
+(void)SaveUserForumParametersDic:(NSDictionary *)parameterDic
                          success:(void (^)(NSDictionary * result))successBlock
                         failture:(void (^)(id result))failtureBlock{
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:saveUserForumURL finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
}
/**
 获取论坛接口
 */
+(void)ForumListParametersDic:(NSDictionary *)parameterDic
                      success:(void (^)(NSDictionary * result))successBlock
                     failture:(void (^)(id result))failtureBlock{
    
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:ForumListURL finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
    
}

/**
 //论坛详情接口
 */
+(void)ForumsDetailParametersDic:(NSDictionary *)parameterDic
                         success:(void (^)(NSDictionary * result))successBlock
                        failture:(void (^)(id result))failtureBlock{
    
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:ForumsDetailURL finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
    
}

/**
 //添加论坛评论接口
 */
+(void)AddForumDiscussParametersDic:(NSDictionary *)parameterDic
                            success:(void (^)(NSDictionary * result))successBlock
                           failture:(void (^)(id result))failtureBlock{
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:AddForumDiscussURL finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
    
    
}

/**
 //论坛收藏接口
 */
+(void)SaveForumCollectionParametersDic:(NSDictionary *)parameterDic
                                success:(void (^)(NSDictionary * result))successBlock
                               failture:(void (^)(id result))failtureBlock{
    
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:SaveForumCollectionURL finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
    
}
/**
 //取消论坛收藏接口
 
 */
+(void)DelForumCollectParametersDic:(NSDictionary *)parameterDic
                            success:(void (^)(NSDictionary * result))successBlock
                           failture:(void (^)(id result))failtureBlock{
    
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DelForumCollectURL finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
    
}

/**
 //用户论坛收藏列表接口
 */
+(void)FindFourmCollectParametersDic:(NSDictionary *)parameterDic
                             success:(void (^)(NSDictionary * result))successBlock
                            failture:(void (^)(id result))failtureBlock{
    
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:FindFourmCollectURL finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
    
}

/**
 //取消论坛点赞接口
 */
+(void)DeleteForumThumbsParametersDic:(NSDictionary *)parameterDic
                              success:(void (^)(NSDictionary * result))successBlock
                             failture:(void (^)(id result))failtureBlock{
    
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:DeleteForumThumbsURL finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
    
}



/**
 //论坛点赞接口
 */
+(void)SaveForumThumbsParametersDic:(NSDictionary *)parameterDic
                            success:(void (^)(NSDictionary * result))successBlock
                           failture:(void (^)(id result))failtureBlock{
    
    [RequestHttpNetWrok requestPostWithParameters:parameterDic urlString:SaveForumThumbsURL finishHandle:^(id result) {
        successBlock(result);
    } failHandle:^(NSError *error) {
        failtureBlock(error);
    }];
    
}

@end
